package Q459;

/**
 * 重复的子字符串
 * @author 23737
 * @time 2021.12.4
 */
public class Test {
    public static void main(String[] args) {
        String s = "hello";
        System.out.println(s.substring(1, s.length() - 1));
    }
}

class Solution {
    public boolean repeatedSubstringPattern(String s) {
        String str = s+s;
        return str.substring(1,str.length()-1).contains(s);
    }
}